package cn.com.jonpad.service;

import cn.com.jonpad.api.vo.Result;
import cn.com.jonpad.api.vo.UserVo;
import cn.com.jonpad.service.impl.UserServiceImpl;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @author Jon Chan
 * @date 2018/9/10 15:09
 */
@FeignClient(name = "resource",fallback = UserServiceImpl.class)
public interface UserService {
    @GetMapping("user/findByUsername/{username}")
    Result<UserVo> findByUsername(@PathVariable("username") String username);
}
